package com.ai.dmc.utils;

/**
 * 常量
 */
public final class Constants {
	public static final String SESSION_USER = "userInfo";
	public static final String NAMESPACE_SHARE = "/sh";

	// 日周期
	public static final String STATIS_DAY_CODE = "11";

	// 周周期
	public static final String STATIS_WEEK_CODE = "11";

	// 月周期
	public static final String STATIS_MONTH_CODE = "11";

	// token 验证成功
	public static final String TOKEN_CHECK_SUC = "suc";
	// token 验证失败
	public static final String TOKEN_CHECK_FAIL = "fail";

	// 冒号分割符(:)
	public static final String COLON_SEPARATOR = "\\:";

	// 连接分隔符(-)
	public static final String CONNECT_SEPARATOR = "-";

	// 竖线分隔符(|)
	public static final String VERTIC_SEPARATOR = "\\|";

	// 逗号分隔符(,)
	public static final String COMMA_SEPARATOR = ",";

	// 同比环比数值类型 (1)
	public static final String SAME_LINK_NUMBER = "1";

	// 同比环比数值类型 (1)
	public static final String SAME_LINK_PERCENT = "2";

	// 统计周期类型 (1：日)
	public static final String CYCLE_TYPE_DAY = "1";

	// 统计周期类型 (2：日累计)
	public static final String CYCLE_TYPE_DAY_ACCU = "2";

	// 统计周期类型 (3：月)
	public static final String CYCLE_TYPE_MONTH = "3";

	// 版本号开始数(1.01)
	public static final String VERSION_CODE_START = "1.00";

	// 版本号累加基数(0.01)
	public static final String VERSION_CODE_NUMBER = "0.01";

	// 指标单位百分比
	public static final String INDEX_UNIT_CODE_PERCENT = "2";

	// 版本保存标识，1表示保留版本,2表示不保留版本
	public static final String INDEX_VERSION_SAVE_FLAG = "2";

	// 指标生成时间范围,1:单个时间 2：批量时间
	public static final String INDEX_DATE_RANGE = "2";

	/*
	 * 敏感级别
	 */
	public static final String SENSE_LEVEL_OPEN = "1"; // 公开

	public static final String SENSE_LEVEL_FORBIDEN = "2"; // 禁止

	public static final String SENSE_LEVEL_APPORVE = "3";// 审批

	public static final String SUPER_PRIVILEGE = "SUPER";// 超级权限

	public static final String DIMENSION_PRIVILEGE = "DIMENSION";// 超级权限
	/*
	 * 按钮权限级别
	 */
	public static final String BUTTON_PRIVILEGE_DELETE = "1";// 删除权限

	public static final String BUTTON_PRIVILEGE_EDIT = "2";// 编辑、修改权限

	public static final String BUTTON_PRIVILEGE_ADD = "3";// 增加权限

	public static final String BUTTON_PRIVILEGE_IMPORT = "4";// 导入权限

	public static final String BUTTON_PRIVILEGE_DOWNLOAD = "5";// 下载权限

	public static final String NEED_PAGE_FLAG = "1";// 需要分页

	/*
	 * 指标扫描失效配置
	 */
	public static final int DAY_REFRESH_INDEX = 31; // 日指标失效期前31天

	public static final int DAY_REFRESH_INDEX_CRT = 100; // 日指标失效期前31天点击数

	public static final int DAY_REFRESH_SUCC_RATE = 0; // 日指标失效期前刷新成功率

	public static final int MON_REFRESH_INDEX = 91; // 月指标失效期前91天

	public static final int MON_REFRESH_INDEX_CRT = 300; // 月指标失效期前31天点击数

	public static final int MON_REFRESH_SUCC_RATE = 0; // 月指标失效期前刷新成功率

	/*
	 * 指标预警
	 */
	public static final String WARN_DIM_SEPARATOR = "＆＆";

	public static final String WARN_DIMID_SEPARATOR = "==";
	// 全国的编码
	public static final String ALL_COUNTRY_CODE = "-";
	// 全市的编码
	public static final String ALL_CITY_CODE = "9999";

	// 版本保存标识，1表示保留版本,2表示不保留版本
	public static final String REPORT_VERSION_SAVE_FLAG = "2";

	// 报表生成时间范围,1:单个时间 2：批量时间
	public static final String REPORT_DATE_RANGE = "2";

	// 报表字段数据类型,2:varchar(10) 1：int
	public static final String REPORT_COLUM_DATA_TYPE_INT = "1";
	public static final String REPORT_COLUM_DATA_TYPE_VARCHAR = "2";

	/*
	 * 排序字段 -- 同比
	 */
	public static final String SAME_CODE_ORDER = "2";
	public static final String SAME_FIELD_ORDER = "sameIndexData";
	/*
	 * 排序字段 -- 环比
	 */
	public static final String LINK_CODE_ORDER = "3";
	public static final String LINK_FIELD_ORDER = "linkIndexData";

	/*
	 * 保存临时报表标识
	 */
	public static final String SAVE_FLAG_TEMP = "0";
	/*
	 * 再次保存临时报表标识
	 */
	public static final String SAVE_RPT_EXIST = "1";

	/*
	 * 
	 */
	public static final String DATA_SOURCE_RPTDATA = "reportWeb";

	/*
	 * 
	 */
	public static final String DATA_SOURCE_RPTWEB = "reportData";

	/*
	 * 
	 */
	public static final String DATA_SOURCE_IDXWEB = "indexWeb";

	/*
	 * 
	 */
	public static final String DATA_SOURCE_IDXDATA = "indexData";

	public static final String MENU_INFO = "menuInfos";

	public static final String OPRATION_SPEC = "operationSpecs";
}
